<table class="table table-striped table-bordered table-hover">

    <tr>
    <th width="170" height="40">A&ccedil;&otilde;es</th>
    <th>Nome</th>
    <th width="200">Área Superior</th>
    </tr>

    <?php

    $sql = "SELECT * FROM cissarea WHERE status='1' ORDER BY cissarea.cis_are_nome DESC";
    $res = sql($sql);

    while($linha = mysql_fetch_array($res)) {
        
        $cis_are_nome = $linha['cis_are_nome'];

    ?>

    <tr>
        <td height="40">
            <input name="excluir[]" type="checkbox" value="<?=$linha['cis_are_id'];?>"/><i class="icon-trash"></i> Excluir&nbsp;&nbsp;|&nbsp;
            <a href="?pag=cissarea_alt&cis_are_id=<?=$linha['cis_are_id'];?>&titulo=CISS :: Área :: Editar"><i class="icon-pencil"></i> Editar</a>
        </td>
        <td><?=$linha['cis_are_nome'];?></td>
        <td>
            <?php
            $sql2 = "SELECT cis_are_nome FROM cissarea WHERE cis_are_id='{$linha['cis_are_id2']}'";
            $res2 = sql($sql2);
            $linha2 = mysql_fetch_array($res2);
            echo $linha2['cis_are_nome'];
            ?>
        </td>
    </tr>

    <?
    } 
    ?>
</table>